﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ArtLand.OA.Project.SystemMgr.SysUsers" CodeBehind="SysUsers.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
        <ext:Panel ID="Panel1" Title="用户管理" BodyPadding="3px" ShowBorder="false" ShowHeader="True"
            Layout="VBox" BoxConfigAlign="Stretch" runat="server">
            <Items>
                <ext:Panel ID="Panel2" ShowBorder="true" ShowHeader="false" runat="server" BoxFlex="1"
                    Layout="Fit">
                    <Items>
                        <ext:Grid ID="Grid1" ShowBorder="false" ShowHeader="false" Title="用户管理" runat="server" AllowPaging="true" PageSize="12"
                            EnableCheckBoxSelect="true" DataKeyNames="UserID" OnRowDataBound="Grid1_RowDataBound"
                            OnRowCommand="Grid1_RowCommand" IsDatabasePaging="true" OnPageIndexChange="Grid1_PageIndexChange"
                            EnableRowNumber="True" EnableTextSelection="true">
                            <Toolbars>
                                <ext:Toolbar ID="Toolbar2" runat="server">
                                    <Items>
                                        <ext:Button ID="btnNew" Text="添加管理员" Icon="Add" EnablePostBack="false" runat="server">
                                        </ext:Button>
                                        <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                                        </ext:ToolbarSeparator>
                                        <ext:TwinTriggerBox ID="ttbxMyBox2" ShowLabel="false" OnTrigger1Click="ttbxMyBox2_Trigger1Click"
                                            OnTrigger2Click="ttbxMyBox2_Trigger2Click" Trigger1Icon="Clear" ShowTrigger1="False"
                                            EmptyText="搜索的用户名或者姓名" Trigger2Icon="Search" runat="server" Width="180px">
                                        </ext:TwinTriggerBox>
                                    </Items>
                                </ext:Toolbar>
                            </Toolbars>
                            <Columns>
                                <ext:BoundField Width="100px" DataField="UserName" DataFormatString="{0}" HeaderText="用户名" />
                                <ext:BoundField Width="120px" DataField="TrueName" HeaderText="真实姓名" />
                                <ext:BoundField Width="100px" DataField="NewGroupID" HeaderText="所属管理组" />
                                <ext:CheckBoxField ColumnID="CheckBoxField2" Width="80px" RenderAsStaticField="false"
                                    AutoPostBack="true" CommandName="CheckBox1" DataField="IsLock" HeaderText="是否可用" />
                                <ext:WindowField ColumnID="myWindowField1" Width="100px" WindowID="Window1" Text="设 定"
                                    DataTextFormatString="{0}" DataIFrameUrlFields="UserID" DataIFrameUrlFormatString="SysUserSetPer.aspx?uid={0}&mtype=0"
                                    DataWindowTitleField="TrueName" DataWindowTitleFormatString="设定{0}的个人权限" HeaderText="设定个人权限" />
                                <ext:WindowField ColumnID="myWindowField" Width="60px" WindowID="Window1" Text="修 改"
                                    DataTextFormatString="{0}" DataIFrameUrlFields="UserID" DataIFrameUrlFormatString="SysUserChange.aspx?id={0}"
                                    DataWindowTitleField="TrueName" DataWindowTitleFormatString="修改{0}的信息" />
                                <ext:LinkButtonField ConfirmText="你确定要这么做么？" ConfirmTarget="Top" ColumnID="ID" Width="50px"
                                    CommandName="Del" Text="删 除" />
                                <ext:BoundField Width="100px" DataField="RefreshTime" HeaderText="所属管理组" Hidden="true" />
                            </Columns>
                        </ext:Grid>
                    </Items>
                </ext:Panel>
            </Items>
        </ext:Panel>
        <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
            CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
            Target="Top" IsModal="True" Width="600px" Height="530px">
        </ext:Window>
    </form>
</body>
</html>
